<template>
    <div>
        <el-form v-model="formData">
            <el-form-item label="标题">
                <el-input v-model="formData.name" ></el-input>
            </el-form-item>
            <el-form-item label="内容">
                <el-input v-model="formData.templateContent" type="textarea"></el-input>
            </el-form-item>
            <el-button @click="handleClickSave()">保存</el-button>
        </el-form>
    </div>
</template>

<script setup>
import { reactive } from 'vue'
import axios from 'axios'
import { ElMessage } from 'element-plus';
 const formData = reactive({
     name: '',
     templateContent: ''
 })
 const handleClickSave = () => {
    axios.post("/api/api/ppt/template/save", formData).then(res => {
       ElMessage.success('保存成功')
    })
 }
</script>

<style scoped lang="less">
</style>